/*
 * @Author: lujing
 * @Date: 2024-06-13 09:29:14
 * @LastEditTime: 2024-06-15 15:03:49
 * @FilePath: \workspace\fy\aiDigitalPerson\dipu-xjy-meta-digital-person\src\components\digital\chat\message\authorDeepexi.tsx
 */
import { IMessage } from 'state/chat';

import AuthorWithAvatar from './authWithAvatar';
import AuthorWithText from './authorWithText';

interface Props {
  message: IMessage;
  show?: boolean;
  children: JSX.Element;
}

export const authorBoxWidth = 40;

export default function AuthorDeepexi(props: Props) {
  return props.message.indent ? (
    // 没有头像的样式
    <AuthorWithText {...props} />
  ) : (
    // 有头像的样式
    <AuthorWithAvatar {...props} />
  );
}
